package util;

public class Pair<T, Q> {

	private Object object1;
	private Object object2;
	
	public Pair(Object object1, Object object2) {
		this.object1 = object1;
		this.object2 = object2;
	}
	
	/**
	 * @param place. int that must be 0 or 1.
	 * @param object
	 */
	public void set(int place, Object object) {
		if (place == 0) {
			object1 = object;
		} else {
			object2 = object;
		}
	}
	
	public Object get(int place) {
		Object object;
		if (place == 0) {
			object = object1;
		} else {
			object = object2;
		}
		return object;
	}
	
}
